<div class="ZZHT-content">

	<div class="ZZHT-user-head"><b>消息详情</b>
		<a class="go-back fr" href="msgList.html">&lt;&lt;&nbsp;&nbsp;返回</a>
	</div>
	<div class="ZZHT-clear"></div>
	<div class="ZZHT-body">
		<div class="ZZHT-page-content">
			<div class="ZZHT-tbar-group">

			</div>
			<div class="msgContent bz">
				<div v-html="data"></div>
			</div>
		</div>
	</div>

</div>
<script type="text/javascript">
	var vm = new Vue({
		el: '.ZZHT-content',
		data: {
			data: ''
		}
	});

	$.ajax({
		type: "get",
		url: SURL + "messages/getMessage",
		data: {
			"receiveUserId": localStorage.userId,
		},
		dataType: 'json',
		success: function(res) {
			console.log(res);
			if(res.messageCode == 200) {
				var tab = res.entity;
				var msgId = gup('msgId');
				if(tab.length > 0) {
					$.each(tab, function(i, v) {
						if(v.id == msgId) {
							var decodeHtml = HtmlUtil.htmlDecode(tab[i].msgContent);
							console.log(decodeHtml);
							vm.data = decodeHtml;
						}
					})
				}
			} else {
				layer.msg(res.message);
			}
		}
	});
</script>